<?php
/**
 * ExtAPIParameterBase class file
 *
 * @author TrueSoftware B.V. (The Netherlands)
 * @link http://www.ext4yii.com
 * @copyright Copyright 2007-2010 TrueSoftwareB.V. all rights reserved.
 * @license http://www.ext4yii.com/license/
 *          EVALUATION VERSION - NOT FOR COMMERCIAL USE OR DISTRIBUTION.
 * @version 0.7.2
 */
 
 
abstract class ExtAPIParameterBase extends ExtWidget
{
    public function createContainer(ExtHTMLParserNode $node)
    {
        $node->shiftUp();
        return null;
    }

    public function renderConfig($asobject=true)
    {
        $config = new ExtJavaScriptObject();
        $method = $this->getMethod();
        if(is_null($method) || trim($method)=="")
            $method = 'POST';
        
        $config->addString('method',$method);
        $config->addString('url', $this->getUrl());
        $value = $config->render();
        return $this->getName() . ':' . $value;
    }
}
?>
